//************************************************
//  *Author：jxx
//  *QQ：283591387
//  *代码由框架生成,任何更改都可能导致被代码生成器覆盖
//  *业务请在q_install_request_notarize.js中编写
//************************************************
export default function () {
	return {
		editFormFields: {},
		editFormOptions: [],
		searchFormFields: { Voucher_sub: '', Voucher_sub_install_request: '', Client: '', Install_date: '', Gong_shi: '', Proposer: '', AuditStatus: '' },
		searchFormOptions: [
			{ title: '安装时间', field: 'Install_date', type: 'date' },
			{ title: '工时', field: 'Gong_shi', type: 'decimal' },
			{ type: 'group' },
			{ title: '单据编码', field: 'Voucher_sub', type: 'like' },
			{ title: '安装申请单', field: 'Voucher_sub_install_request', type: 'like' },
			{ key: '无条件客户', data: [], title: '客户', field: 'Client', type: 'select' },
			{ type: 'group' },
			{ title: '安装人员', field: 'Proposer', type: 'text' },
			{ key: 'audit', data: [], title: '审核状态', field: 'AuditStatus', type: 'select' }
		],
		columns: [
			{ field: 'Voucher_sub', title: '单据编码', type: 'string', link: true },
			{ field: 'Voucher_sub_install_request', title: '安装申请单', type: 'string' },
			{ field: 'Client', title: '客户', type: 'int', bind: { key: '无条件客户', data: [] } },
			{ field: 'Install_date', title: '安装时间', type: 'datetime' },
			{ field: 'Gong_shi', title: '工时', type: 'float' },
			{ field: 'Install_address', title: '安装地址', type: 'string' },
			{ field: 'Proposer', title: '安装人员', type: 'string' },
			{ field: 'AuditStatus', title: '审核状态', type: 'int', bind: { key: 'audit', data: [] } },
			{ field: 'Remark', title: '备注', type: 'string' },
			{ field: 'Attachment', title: '附件', type: 'file' },
			{ field: 'Image', title: '图片', type: 'img' }
		],
		table: {
			key: 'Install_request_notarize',
			footer: 'Foots',
			cnName: '安装完成确认单',
			name: 'q_install_request_notarize',
			url: '/q_install_request_notarize/',
			sortName: 'Voucher_sub'
		}
	};
}
